﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace ZhimeiSoft.CharmManager.DOL
{
    /// <summary>
    /// 待办事项与预约记录对应表
    /// </summary>
    public class DBEntityReservationToDoList : DBEntityBase
    {
         /// <summary>
        /// 表名称
        /// </summary>
        /// <returns></returns>
        public override string GetTableName()
        {
            return "RESVERATIONTODOLIST";
        }

        public DBEntityReservationToDoList()
            : base()
        {
        }

        public DBEntityReservationToDoList(DataRow drRow):base()
        {
            this.RESERVATIONID = Convert.ToInt32(drRow[DBEntityReservationToDoList.FieldName.RESERVATIONID]);
            this.TODOLISTID = Convert.ToInt32(drRow[DBEntityReservationToDoList.FieldName.TODOLISTID]);
        }
        /// <summary>
        /// 预约ID
        /// </summary>
        public int RESERVATIONID {get;set;}
        /// <summary>
        /// 代办事项ＩＤ
        /// </summary>
	    public int TODOLISTID {get;set;}
        /// <summary>
        /// 字段名称
        /// </summary>
        public static class FieldName
        {
            /// <summary>
            /// 预约ID
            /// </summary>
            public const string RESERVATIONID = "RESERVATIONID";
            /// <summary>
            /// 代办事项ＩＤ
            /// </summary>
            public const string TODOLISTID = "TODOLISTID";
        }
    }
}
